﻿using System;
using System.Collections.Generic;
using System.Data.Objects;
using System.Linq;
using System.Web;
using System.ServiceModel.DomainServices.EntityFramework;
using EnsureWeb.Web.DataModel;

namespace EnsureWeb.Web.DomainService
{
    public partial class EnsureWebDomainService : LinqToEntitiesDomainService<EnsureWebEntities>
    {
        public IQueryable<MembershipRole> GetMembershipRoleIncludingPower()
        {
            return this.ObjectContext.MembershipRole.Include("MembershipRolePower");
        }

        public IQueryable<MembershipUser> GetMembershipUserIncludingPower()
        {
            return this.ObjectContext.MembershipUser.Include("MembershipRole").Include("MembershipRole.MembershipRolePower");
        }

    }
}